﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="Inovout.Organization"
				        namespace="Inovout.Organization.Membership.Domain">

  <joined-subclass name="OrganizationMembership" extends="Inovout.Membership.Domain.Membership" 
                   table="Organization_OrganizationMembership">
    <key column="OrganizationMembershipId" />
    <many-to-one name="Organization" column="OrganizationId" foreign-key="FK_Organization_OrganizationUnit_OrganizationUnitId_Organization_OrganizationMembership_OrganizationMembershipId" cascade="all" unique="true"
                 class="Inovout.Organization.Domain.OrganizationUnit" />
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </joined-subclass>
</hibernate-mapping>


